.class Lcom/example/m6wmr/YucartActivity$15;
.super Ljava/lang/Thread;
.source "YucartActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/YucartActivity;->getcxSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/YucartActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/YucartActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    .line 951
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 953
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 955
    const-string v2, ""

    .line 956
    .local v2, "ids":Ljava/lang/String;
    const-string v3, ""

    .line 957
    .local v3, "idscount":Ljava/lang/String;
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 960
    .local v5, "msg":Landroid/os/Message;
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->helper:Ldbclass/DBOpenHelper;
    invoke-static {v12}, Lcom/example/m6wmr/YucartActivity;->access$2(Lcom/example/m6wmr/YucartActivity;)Ldbclass/DBOpenHelper;

    move-result-object v12

    invoke-virtual {v12}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v12

    .line 961
    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "select * from cart where shopid="

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v14, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;
    invoke-static {v14}, Lcom/example/m6wmr/YucartActivity;->access$7(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    const/4 v14, 0x0

    .line 960
    invoke-virtual {v12, v13, v14}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v12

    invoke-static {v11, v12}, Lcom/example/m6wmr/YucartActivity;->access$3(Lcom/example/m6wmr/YucartActivity;Landroid/database/Cursor;)V

    .line 962
    const/4 v0, 0x0

    .line 963
    .local v0, "checki":I
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v11}, Lcom/example/m6wmr/YucartActivity;->access$4(Lcom/example/m6wmr/YucartActivity;)Landroid/database/Cursor;

    move-result-object v11

    if-eqz v11, :cond_1

    .line 964
    :goto_0
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v11}, Lcom/example/m6wmr/YucartActivity;->access$4(Lcom/example/m6wmr/YucartActivity;)Landroid/database/Cursor;

    move-result-object v11

    invoke-interface {v11}, Landroid/database/Cursor;->moveToNext()Z

    move-result v11

    if-nez v11, :cond_0

    .line 976
    if-nez v0, :cond_2

    .line 977
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 978
    const/16 v11, 0x8

    iput v11, v5, Landroid/os/Message;->arg1:I

    .line 979
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v11, v11, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1023
    :goto_1
    return-void

    .line 965
    :cond_0
    new-instance v11, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v12, ","

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v12}, Lcom/example/m6wmr/YucartActivity;->access$4(Lcom/example/m6wmr/YucartActivity;)Landroid/database/Cursor;

    move-result-object v12

    iget-object v13, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v13}, Lcom/example/m6wmr/YucartActivity;->access$4(Lcom/example/m6wmr/YucartActivity;)Landroid/database/Cursor;

    move-result-object v13

    const-string v14, "goodsid"

    invoke-interface {v13, v14}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v13

    invoke-interface {v12, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 966
    new-instance v11, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v12, ","

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v12}, Lcom/example/m6wmr/YucartActivity;->access$4(Lcom/example/m6wmr/YucartActivity;)Landroid/database/Cursor;

    move-result-object v12

    iget-object v13, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->cursor:Landroid/database/Cursor;
    invoke-static {v13}, Lcom/example/m6wmr/YucartActivity;->access$4(Lcom/example/m6wmr/YucartActivity;)Landroid/database/Cursor;

    move-result-object v13

    const-string v14, "goodscount"

    invoke-interface {v13, v14}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v13

    invoke-interface {v12, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 967
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 970
    :cond_1
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 971
    const/4 v11, 0x7

    iput v11, v5, Landroid/os/Message;->arg1:I

    .line 972
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v11, v11, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_1

    .line 983
    :cond_2
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    const-string v12, "userInfo"

    .line 984
    const/4 v13, 0x0

    .line 983
    invoke-virtual {v11, v12, v13}, Lcom/example/m6wmr/YucartActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v6

    .line 985
    .local v6, "preferences":Landroid/content/SharedPreferences;
    const-string v11, "uid"

    const-string v12, ""

    invoke-interface {v6, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 986
    .local v9, "uid":Ljava/lang/String;
    const-string v11, "pass"

    const-string v12, ""

    invoke-interface {v6, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 987
    .local v7, "pwd":Ljava/lang/String;
    new-instance v11, Ljava/lang/StringBuilder;

    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, v12, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v12}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 988
    const-string v12, "/index.php?ctrl=app&action=getcx&shopid="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    .line 989
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;
    invoke-static {v12}, Lcom/example/m6wmr/YucartActivity;->access$7(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&lat="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, v12, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v12}, Lmyapp/MyApp;->getLat()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&lng="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, v12, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v12}, Lmyapp/MyApp;->getLng()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&ids="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&idscount="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&uid="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&pwd="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    .line 990
    const-string v12, "&datatype=json"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    .line 987
    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    .line 991
    .local v10, "url":Ljava/lang/String;
    const-string v11, "YucartACtivity"

    new-instance v12, Ljava/lang/StringBuilder;

    const-string v13, "getcxSource()\u83b7\u53d6\u4fc3\u9500"

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-static {v11, v12}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 992
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v11, v11, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    invoke-static {v10, v11}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v8

    .line 995
    .local v8, "str":Ljava/lang/String;
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v8}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 997
    .local v4, "json":Lorg/json/JSONObject;
    const-string v11, "error"

    invoke-virtual {v4, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    const-string v12, "true"

    invoke-virtual {v11, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_3

    .line 998
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 999
    const-string v11, "msg"

    invoke-virtual {v4, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1000
    const/4 v11, 0x1

    iput v11, v5, Landroid/os/Message;->arg1:I

    .line 1001
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v11, v11, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_1

    .line 1015
    .end local v4    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 1017
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 1018
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1020
    const/4 v11, 0x2

    iput v11, v5, Landroid/os/Message;->arg1:I

    .line 1021
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v11, v11, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_1

    .line 1004
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v4    # "json":Lorg/json/JSONObject;
    :cond_3
    :try_start_1
    const-string v11, "msg"

    invoke-virtual {v4, v11}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_4

    .line 1005
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1006
    const/4 v11, 0x2

    iput v11, v5, Landroid/os/Message;->arg1:I

    .line 1007
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v11, v11, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_1

    .line 1010
    :cond_4
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 1011
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    invoke-static {v11, v8}, Lcom/example/m6wmr/YucartActivity;->access$25(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V

    .line 1012
    const/16 v11, 0xe

    iput v11, v5, Landroid/os/Message;->arg1:I

    .line 1013
    iget-object v11, p0, Lcom/example/m6wmr/YucartActivity$15;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v11, v11, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v5}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1026
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1027
    monitor-exit p0

    return-void

    .line 1026
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
